package com.cloudlead.common.lang.security;

public abstract class SecurityThreadContext {

	private static final ThreadLocal<Subject> resources = new ThreadLocal<>();

	public static void setSubject(Subject subject) {
		resources.set(subject);
	}

	public static Subject getSubject() {
		return resources.get();
	}
}
